package sweep;

import javax.swing.*;
import java.io.Serial;
import java.net.*;

public class Login extends JFrame {
    @Serial
    private static final long serialVersionUID = 1L;
    public Login(Socket client) {
        JButton LoginButton = new JButton("Login");
        JButton ExitButton = new JButton("Exit");
        LoginButton.addActionListener(e -> {
            Sweep.startMenuBoard(client);
            dispose();
        });
        ExitButton.addActionListener(e -> {
            Client.quit();
            System.exit(0);
        });
        LoginButton.setBounds(50, 30 , 200 , 25);
        ExitButton.setBounds(50, 60, 200, 25);
        add(LoginButton);
        add(ExitButton);
        add(new JLabel(""));
    }
}
